﻿@{
    Layout = null;
}
@model IEnumerable<Weixin.MP.DAL.WeixinMP.AppUserInfoEO>
<form id="pagerForm" method="post" action="/AppUser/Attention">
<input type="hidden" name="pageIndex" value="@ViewBag.PageIndex" />
<input type="hidden" name="pageSize" value="@ViewBag.PageSize" />
<input type="hidden" name="recordCount" value="@ViewBag.RecordCount" />
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="edit" href="/AppUser/SyncAppUser" target="ajaxTodo" title="此操作将同步微信平台关注用户信息到本地！"><span>同步关注用户</span></a> </li>
        </ul>
    </div>
    <table class="list" width="100%" layouth="138">
        <thead>
            <tr>
                <th>用户头像</th>
                <th>用户昵称</th>
                <th>所在省会</th>
                <th>所在城市</th>
                <th>关注状态</th>
                <th>更新时间</th>
            </tr>
        </thead>
        <tbody style="text-align: center;">
            @{
                foreach (var item in Model)
                {
                <tr target="repId" rel="@item.Openid">
                    <td>
                        <div>
                            <span><img src="@item.Headimgurl" alt="" width="60px" height="60px"/></span>
                        </div>
                    </td>
                    <td>
                        <span>@item.Nickname</span>
                    </td>
                    <td><span>@item.Province</span></td>
                    <td>
                        <span>@item.City</span>
                    </td>
                    <td>
                        <span>@if(@item.Subscribe==0){<text>未关注</text>}else{<text>关注中</text>}</span>
                    </td>
                    <td>
                        <span>@item.Createtime.ToString("yyyy-MM-dd")</span>
                    </td>
                </tr>
            
                }
            }
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>共@{@ViewBag.RecordCount}
                条</span></div>
        <div rel="" class="pagination" targettype="navTab" totalcount="@ViewBag.RecordCount" numperpage="@ViewBag.PageSize" pagenumshown="10" currentpage="@ViewBag.PageIndex">
        </div>
    </div>
</div>